
public class StackApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		
		IntegerStack istack = new IntegerStack();
		
		istack.push(1);
		istack.push(2);
		istack.push(3);
		istack.push(4);
		
		while (!istack.isEmpty())
			System.out.println(istack.pop());

	}

}
